/*
 * subtitle.h
 *
 *  Created on: 8-ott-2008
 *      Author: fpistonesi
 */
/*

 Copyright (c) 2008-2009 Fabrizio Pistonesi

 This program is free software; you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
 the Free Software Foundation; either version 2 of the License, or
 (at your option) any later version.

 This program is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 GNU General Public License for more details.

 You should have received a copy of the GNU General Public License
 along with this program; if not, write to the Free Software
 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA

 */

#ifndef SUBTITLE_H_
#define SUBTITLE_H_

#include <irrlicht.h>
using namespace irr;
using namespace core;
using namespace scene;
using namespace video;
using namespace io;
using namespace gui;

class SubTitle
{
public:
  SubTitle(IrrlichtDevice* device);
  virtual
  ~SubTitle();

  IrrlichtDevice* Device;
  IGUIStaticText* Subtitle;
  bool IsRunning;
  u32 EndTime;

  void print(const wchar_t* string, u32 delay = 2000);
  void format(const c8* font, SColor color, int size = 0);
  void draw();

};

#endif /* SUBTITLE_H_ */
